
<%@ page import="org.tailor.Regions" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="mainlayout" />
        <g:set var="entityName" value="${message(code: 'regions.label', default: 'Regions')}" />
        <title><g:message code="default.show.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="col_middle">
           <h1><g:message code="default.show.label" args="[entityName]" /></h1>
           
           
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="show">
                <table>
                    <tbody>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="regions.id.label" default="Id" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: regionsInstance, field: "id")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="regions.regionID.label" default="Region ID" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: regionsInstance, field: "regionID")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="regions.regionName.label" default="Region Name" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: regionsInstance, field: "regionName")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="regions.regionPicture.label" default="Region Picture" /></td>
                            
                            <td valign="top" style="text-align: left;" class="value">
                                <img src="<g:createLink controller='regions' action='renderImage' id='${fieldValue(bean: regionsInstance, field:"id")}'/>"
				 width="120" height="120"	title="${fieldValue(bean: regionsInstance, field:"id")}"
				alt="No Photo" />
                            </td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="regions.description.label" default="Description" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: regionsInstance, field: "description")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="regions.tailor.label" default="Tailor" /></td>
                            
                            <td valign="top" style="text-align: left;" class="value">
                                
                                <g:each in="${regionsInstance.tailor}" var="t">
                                    <g:link controller="tailor" action="show" id="${t.id}">${t?.encodeAsHTML()}</g:link>
                                </g:each>
                              
                            </td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <g:hiddenField name="id" value="${regionsInstance?.id}" />
                    <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                     <span class="menuButton"><g:link class="create" controller="comment" action="list" id="${regionsInstance.regionID}">View Comments</g:link></span>
                </g:form>
                
                
            </div>
        </div>
    </body>
</html>
